<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>订单 &gt; 订单管理 &gt; 订单编辑</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
    </div>
    <div class="portlet-body">
    	<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li><a href="/order/edit?orderId=$!item.id" class="ajaxify" id="orderInfoLink">订单信息</a></li>
				<li><a href="/orderItem/list?orderId=$!item.id" class="ajaxify">订单货品</a></li>
				<li class="active"><a href="/orderReceipt/orderBills?orderId=$!item.id" class="ajaxify">单据信息</a></li>
				<li><a href="/orderLog/orderLogs?id=$!item.id" class="ajaxify">订单日志</a></li>
			</ul>
		</div>
    	<div class="dataTables_wrapper no-footer">
			
			<div class="table-scrollable">
				<h2>收款单信息</h2>
			      <table class="table table-striped table-bordered table-hover">
			      	<tbody>
				      	<tr align="center">
				      		<td>收款单号</td><td>$!receipt.id</td>
				      		<td>订单号</td><td>$!item.id</td>
				      		<td>订单金额</td><td>$!receipt.orderFee</td>
				      	</tr>
				      	<tr align="center">
				      		<td>支付类型</td><td>$!receipt.settleWay.name</td>
				      		<td>状态</td><td>#if($!receipt.status) 完成 #else 未完成 #end</td>
				      		<td>改价减免金额</td><td>$!receipt.otherReduction</td>
				      	</tr>
				      	<tr align="center">
				      		<td>收款现金</td><td>$!receipt.cashFee</td>
				      		<td>礼品卡抵现</td><td>$!receipt.couponReduction</td>
				      		<td>优惠</td><td>$!receipt.promotionsReduction</td>
				      	</tr>
				      	<tr align="center">
				      		<td>付款会员</td><td>$!receipt.payUser</td>
				      		<td>支付时间</td><td>$!receipt.payDate</td>
				      		<td>赠送会员积分</td><td>$!receipt.giveScore</td>
				      	</tr>
				      	<tr align="center">
				      		<td>付款人姓名</td><td>$!receipt.payName</td>
				      		<td>所属企业</td><td>$!receipt.ownCompany</td>
				      		<td></td><td></td>
				      	</tr>
			      	</tbody>
			      </table>
			</div>
			
			<div class="table-scrollable">
				<h2>发货信息</h2>
			      <table class="table table-striped table-bordered table-hover">
			      	<tbody>
			      		#foreach($sg in $sendgoods)
				      	<tr align="center">
				      		<td>发货单号</td><td>$!sg.id</td>
				      		<td>订单号</td><td>$!sg.orderId</td>
				      		<td>配送方式</td><td>送货上门</td>
				      	</tr>
				      	<tr align="center">
				      		<td>发货状态</td>
				      		<td>
				      			#if($!item.orderState.name=='待收货' || $!item.orderState.name=='完成')
				      				已发货
				      			#end
				      			#if($!item.orderState.name=='待发货' && $!sg.id!='')
				      				部分发货
				      			#end
				      		</td>
				      		<td>物流公司</td><td>$!sg.transCompany</td>
				      		<td>物流单号</td><td>$!sg.transNum</td>
				      	</tr>
				      	<tr align="center">
				      		<td>购买会员</td><td>$!item.username</td>
				      		<td>收货人</td><td>$!sg.revicer</td>
				      		<td>收货人电话</td><td>$!sg.rePhone</td>
				      	</tr>
				      	<tr align="center">
				      		<td>收货地区</td><td>$!sg.reArea</td>
				      		<td>详细地址</td><td>$!sg.reAdress</td>
				      		<td>发货人</td><td>$!sg.sender</td>
				      	</tr>
				      	<tr align="center">
				      		<td>发货数量</td><td>$!sg.currSendNum</td>
				      		<td>发货时间</td><td>$!sg.sendTime</td>
				      		<td>发货备注</td><td>$!sg.note</td>
				      	</tr>
				      	<tr align="center">
				      		<td colspan="6"></td>
				      	</tr>
				      	#end
				      	 
			      	</tbody>
			      </table>
			</div>
			
			
		</div>
    </div>
</div>
